<html><head><title>CreateCubeMapTexture</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">CreateCubeMapTexture()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>CreateCubeMapTexture</b></font>(#Texture, Width, Height, TextureName$ [, BackColor])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Creates a new cube map texture. A cube map texture use the surrounding to render itself as reflection on it. 
This texture has to exist in an OGRE script. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Texture</i></td>
<td width="90%"> 
The number to identify the new texture. <a href="../reference/purebasic_objects.html">#PB_Any</a> can 
be used to auto-generate this number. 

</td></tr>
<tr><td><i>Width</i></td>
<td> 
The width of the new texture (in pixels). 

</td></tr>
<tr><td><i>Height</i></td>
<td> 
The height of the new texture (in pixels). 

</td></tr>
<tr><td><i>TextureName$</i></td>
<td> 
The name of the texture in the OGRE scripts. This texture has to be defined in the script with the 
correct value to have a working cube mapping. If 'TextureName$' is set to 'CubeMapTexture', a material 
script should contain the following definition (which can be adapted depending on your needs): 
<pre><font face="Courier New, Courier, mono"size="2">  material CubeMapMaterial
  {
    technique
    {
      pass
      {
        texture_unit
        {
          cubic_texture CubeMapTexture combinedUVW
          tex_address_mode clamp
          env_map cubic_reflection
        }
      }
    }
  }
</font></pre>

</td></tr>
<tr><td><i>BackColor (optional)</i></td>
<td> 
The back color of the cube mapping scene, if no <a href="../engine3d/skybox.html">SkyBox()</a> is used. To get a valid color, use <a href="../2ddrawing/rgb.html">RGB()</a>. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns zero if the texture can't be created. If <a href="../reference/purebasic_objects.html">#PB_Any</a> is used 
as '#Texture' parameter, the new texture number is returned. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="entitycubemaptexture.html">EntityCubeMapTexture()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=copytexture.html>CopyTexture()</a> - <a href=index.html>Texture Index</a> - <a href=createrendertexture.html>CreateRenderTexture()</a> ->

</body></html>